package com.nbsaas.boot.tenant.rest.convert;

import com.nbsaas.boot.tenant.data.entity.Database;
import com.nbsaas.boot.tenant.api.domain.response.DatabaseResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 数据源管理-实体对象转化成响应对象
*/

public class DatabaseResponseConvert  implements Converter<DatabaseResponse,Database> {

    @Override
    public DatabaseResponse convert(Database source) {
        DatabaseResponse  result = new  DatabaseResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

